var express = require('express');
var router = express.Router();
let userController = require('../controller/controlUser')

/* GET users listing. */
// 用户列表
router.get('/list',userController.UserList);
// 注册用户
router.post('/add',userController.UserAdd);
// 图形验证码
router.get('/captcha',userController.SvgCaptcha)
// 登录
router.post('/login',userController.login)
// 编辑
router.post('/userEdit',userController.userEdit)
// 删除
router.get('/userDelete',userController.userDelete)
module.exports = router;
